package com.stellar.circle.domain.payment.impl;


import com.stellar.circle.domain.payment.PaymentDomainService;
import com.stellar.pay.core.entity.OrderQueryResultDTO;
import com.stellar.pay.core.entity.PrepayResponse;
import com.stellar.pay.core.service.IWxPayJsapiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;


/**
 * @Author Jqcc
 * @Version 1.0
 * @Data 2025/4/11
 */
@Service
public class PaymentDomainServiceImpl implements PaymentDomainService {

    @Resource
    private IWxPayJsapiService wxPayJsapiService;

    @Override
    public PrepayResponse submitPinOrder(String pinOrderNo, String openId, BigDecimal actualAmount, String description) {
        return wxPayJsapiService.createOrder(openId, pinOrderNo, actualAmount, description);
    }

}
